from graph import *
x = 0
y = 0
m = 1
x = int(input())
y = int(input())
m = int(input())
penColor('blue')
penSize(2)
brushColor('blue')
q=10
q=q*m
if x +3*q > 500 and y+q*2 > 500 and x <= 0 and y <= 0 and m != 0:
    exit()
else:
    polygon([(x,y), (x+q,y), (x+q,y+q), (x+q*2,y+q), (x+q*2,y), (x+q*3,y), (x+q*3,y+q*2), (x, y+q*2), (x, y)])
    run()